<include file="Public:header" /> <include file="Public:leftside" />
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i> <a href="/">首页</a> </li>
			<li class="active">商品品牌管理</li>
		</ul>
	</div>
	<div class="page-content">
	<div class="row panel-body" style="width: 100%;margin: 5px auto;padding: 15px 0;">
      <a href="{:U('Shop/index')}" class="btn btn-sm btn-default">商品管理</a>
      <a href="{:U('Shop/ticketTypeList')}" class="btn btn-sm btn-default">商品分类</a>
      <a href="{:U('Shop/brandList')}" class="btn btn-sm btn-primary">商品品牌</a>
      <a href="{:U('Shop/attributelist')}" class="btn btn-sm btn-default">商品类型</a>

    </div>
    <section class="panel-default m-b-sm">
        <div class="alert alert-info" >
          <p>
                    <i class="fa fa-hand-o-right m-r-xs"></i><strong>操作提示</strong>
                  </p>
                   <p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>该页面可对商品品牌进行编辑修改操作。</p>
        
              </div>
      </section>
<div class="web_form">
    <form action="__CONTROLLER__/brandSave/" class="form form-horizontal" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="<?PHP echo $current['id'];?>" />
        <div class="form-group">
				<label class="col-sm-1 control-label no-padding-right" for="name">品牌名称:</label>
				<div class="col-sm-9">
					<input class="col-xs-10 col-sm-2" type="text" datatype="required" data="商品类型" name="name" id="name" value="<?=$current['name']?>" / >
				</div>
	    </div>
       
        <div class="form-group">
				<label id="form-field-27" class="col-sm-1 control-label no-padding-right" for="isMobile">排序:</label>
				<div class="col-sm-9">
					<div >
						<label>
						 <input class="ace" type="text" name="sort" id="sort" value="{$current['sort']|default='0'}"  />
						 <span class="lbl"></span>
						</label>
			        </div>
				</div>
		</div>
		<div class="form-group">
			<label id="form-field-27" class="col-sm-1 control-label no-padding-right" for="isMobile">是否开启:</label>
				<div class="col-sm-9">
					<label class="switch">
					<?php  if($current['ishidden']===null){?>
						<input type="checkbox" name="ishidden" checked>
					<?php  }else{?>
						<input type="checkbox" name="ishidden" <eq name="current['ishidden']" value="0">checked</eq>>
					<?php  }?>
						
						<span></span>
					</label>
				</div>
			</div>
        <div class="form-group">
				<label class="col-sm-1 control-label no-padding-right" for="image">品牌LOGO:</label>
				<div class="col-sm-9">
					<div id="uploader" style="width:200px;overflow:hidden">
                      <div id="fileList" class="uploader-list">
                      <div id="WU_FILE_0" class="file-item thumbnail upload-state-done"><img class="img-responsive" src=""></div>
                      <input type="hidden" name="UpFilePathInfo" value="">
                      </div>
                      <div id="cfilePicker">选择图片</div>
                  	</div>
				</div>
	    </div>
        <div class="clearfix form-actions">
				<div class="col-md-offset-1 col-md-9">
					<button class="btn btn-info formSubmit" id="form" type="button"><i class="icon-ok bigger-110"></i>提交</button>
					&nbsp; &nbsp; &nbsp;
					<button class="btn" type="button" onclick="history.back(-1);"><i class="icon-undo bigger-110"></i>返回</button>
				</div>
		</div>
       
    </form>
</div>
</div>
</div>

<script>
//全局变量
    var GV = {
         DIMAUB: "/",
        JS_ROOT: "NewAdmin/js/",
        TOKEN: ""
    };
</script>
<script type="text/javascript" src="/NewAdmin/js/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/NewAdmin/js/webuploader/getting-started.js"></script>
<link rel="stylesheet" href="/NewAdmin/css/webuploader.css" />
<script src="/NewAdmin/js/wind.js"></script>
<link href="/NewAdmin/js/artDialog/skins/default.css" rel="stylesheet" />
<script src="/NewAdmin/js/zhlmy.js"></script>
<script type="text/javascript">
var BASE_URL = '/NewAdmin/js/webuploader/';
var UPLOAD_SERVER='{:U("User/uploadify_wb")}';
var UpFilePathInfo='<?=$current['image']?>';
$(function() {
	$('#uploader img').attr('src',UpFilePathInfo);
	$(':input[name="UpFilePathInfo"]').val(UpFilePathInfo);
	$("#uploader").setUploader(null,{uploadImgType:'normal',thumb:{height:102}});
});
</script>
<include file="Public:footer" />